<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      button {
        animation: throttle 3s step-end forwards;
      }
      button:active {
        animation: none;
      }
      @keyframes throttle {
        from {
          color: red;
          pointer-events: none;
        }
        to {
          color: green;
          pointer-events: all;
        }
      }
    </style>
  </head>
  <body>
    <button onclick="console.log('保存')">保存</button>
  </body>
</html>
